/**
 * 
 */
package com.py.credit.service;

import java.util.List;
import java.util.Map;

import com.py.credit.entity.AuScontent;
import com.py.framework.core.common.Page;

/**
 * @author dd
 *
 */
public interface AuScontentService {

	public void add(AuScontent sa, Long userId);

	public void del(String ids);

	/**
	 * @param showColumns
	 * @param additionalColumns
	 * @param condition
	 * @param page
	 * @return
	 */
	public List<Map<String, Object>> getByConditionForPage(String status, List<String> showColumns,
			String[] additionalColumns, String condition, Page page);

	/**
	 * @param sa
	 */
	public void update(AuScontent sa);

	/**
	 * @param id
	 * @return
	 */
	AuScontent getAuScontentById(String id);

	/**
	 * @param sContentType
	 * @return
	 */
	public boolean getAuScontentByToken(String token);

	/**
	 * @param token
	 * @return
	 */
	public AuScontent getByToken(String token);

	/**
	 * 获取已申请通过的共享授权部门数
	 * 
	 * @return
	 */
	public int getAuScontentDeptNum();

}
